package com.sq.partner.manager.dao;

import java.util.List;
import java.util.Map;

import com.sq.partner.manager.mybatis.model.RuleAgent;
import com.sq.partner.manager.util.Page;

public interface RuleAgentConfigDao extends BaseDao{
	
	public Page<Map<String,Object>> queryRuleAgentPageByCriteria(Page<Map<String,Object>> page) throws Exception;
	
	public boolean deleRuleAgentById(String ruleAgentid) throws Exception;
	
	public Page<Map<String,Object>> queryAgentInfoPageByPlanNo(Page<Map<String,Object>> page) throws Exception;
	
	boolean addRuleAgentById(RuleAgent ruleAgent) throws Exception;
	
	Page<Map<String, Object>> queryRulePageByCriteria(
			Page<Map<String, Object>> page) throws Exception;
	
	Map<String,Object> queryRuleAgentById(String ruleAgentId) throws Exception;
	
	List<Map<String,Object>> queryRuleAgentByRuleId(String ruleAgentId) throws Exception;
	
	public boolean updateRuleAgent(RuleAgent ruleAgent) throws Exception;
}
